package com.ktjy.iotorder.pojo;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "myapp.user")
public class User {

    @Value("${myapp.user.name}")
    private String name;
    @Value("${myapp.user.age}")
    private Integer age;
}
